Move some docs inline
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 11 Jul 2007 22:21:06 +0000 (22:21 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 11 Jul 2007 22:21:06 +0000 (22:21 +0000)
svn path=/trunk/; revision=18447

ChangeLog
docs/reference/ChangeLog
docs/reference/gtk/tmpl/gtksocket.sgml
gtk/gtkplug.c
gtk/gtksocket.c

index 7e4377dbe2bdc3b71fa8bfb18d6972c015c12385..8595201de21b150280ebd06a1eab5abf2e9fb55b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-11  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkplug.c:
+       * gtk/gtksocket.c: Move docs inline, and add some missing
+       docs.  
+
 2007-07-11  Kristian Rietveld  <kris@imendio.com>
 
        * gtk/gtktreeview.c (gtk_tree_view_*_to_*_coords): x should be
index a6c00e11e54971652f49571ecf239e8a8421bbde..1dbcf924d5d4b6b3c31f01c5453d2b4042e0b0d9 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-11  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/tmpl/gtkplug.sgml:
+       * gtk/tmpl/gtksocket.sgml: Move docs inline
+
 2007-07-11  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtk-sections.txt: Updates
index 1f32d695648870ce8021b5464916b530b0b0ca2e..f20b6e0f3dae0eab2860eb5573e6d91b8c390196 100644 (file)
@@ -59,7 +59,8 @@ When GTK+ is notified that the embedded window has been
 destroyed, then it will destroy the socket as well. You
 should always, therefore, be prepared for your sockets
 to be destroyed at any time when the main event loop
-is running.
+is running. To prevent this from happening, you can
+connect to the #GtkSocket::plug-removed signal.
 </para>
 
 <para>
@@ -112,25 +113,17 @@ never be set by an application.)
 
 <!-- ##### SIGNAL GtkSocket::plug-added ##### -->
 <para>
-This signal is emitted when a client is successfully
-added to the socket.
+
 </para>
 
-@socket: the object which received the signal.
-<!-- # Unused Parameters # -->
-@socket_: the object which received the signal.
+@socket_: 
 
 <!-- ##### SIGNAL GtkSocket::plug-removed ##### -->
 <para>
-This signal is emitted when a client is removed from the socket. The
-default action is to destroy the #GtkSocket widget, so if you want to
-reuse it you must add a signal handler that returns %TRUE.
+
 </para>
 
-@socket: the object which received the signal.
-@Returns: 
-<!-- # Unused Parameters # -->
-@socket_: the object which received the signal.
+@socket_: 
 
 <!-- ##### FUNCTION gtk_socket_new ##### -->
 <para>
index f9ca4eff8a024c169ceb1ce486dc6d614286f844..8266804a32c0b74668f2f58891f93d2283c23d1d 100644 (file)
@@ -148,6 +148,13 @@ gtk_plug_class_init (GtkPlugClass *class)
                                                         FALSE,
                                                         GTK_PARAM_READABLE));
 
+  /**
+   * GtkPlug::embedded:
+   * @plug: the object on which the signal was emitted
+   *
+   * Gets emitted when the plug becomes embedded in a socket
+   * and when the embedding ends.
+   */ 
   plug_signals[EMBEDDED] =
     g_signal_new (I_("embedded"),
                  G_OBJECT_CLASS_TYPE (class),
index 8f54f58804a93acfc6bdcb29f4311fe626e705fd..af66729067686c92703ecba0a0c057b32f4c2a92 100644 (file)
@@ -144,6 +144,13 @@ gtk_socket_class_init (GtkSocketClass *class)
   container_class->remove = gtk_socket_remove;
   container_class->forall = gtk_socket_forall;
 
+  /**
+   * GtkSocket::plug-added:
+   * @socket_: the object which received the signal
+   *
+   * This signal is emitted when a client is successfully
+   * added to the socket. 
+   */
   socket_signals[PLUG_ADDED] =
     g_signal_new (I_("plug_added"),
                  G_OBJECT_CLASS_TYPE (class),
@@ -152,6 +159,17 @@ gtk_socket_class_init (GtkSocketClass *class)
                  NULL, NULL,
                  _gtk_marshal_VOID__VOID,
                  G_TYPE_NONE, 0);
+
+  /**
+   * GtkSocket::plug-removed:
+   * @socket_: the object which received the signal
+   *
+   * This signal is emitted when a client is removed from the socket. 
+   * The default action is to destroy the #GtkSocket widget, so if you 
+   * want to reuse it you must add a signal handler that returns %TRUE. 
+   *
+   * Return value: %TRUE to stop other handlers from being invoked.
+   */
   socket_signals[PLUG_REMOVED] =
     g_signal_new (I_("plug_removed"),
                  G_OBJECT_CLASS_TYPE (class),